import { Module } from '@nestjs/common';
import { HttpModule } from '@nestjs/axios';
import { DeepSeekService } from './deepseek.service';
import { ConfigModule } from '../config/config.module';

@Module({
  imports: [
    HttpModule.register({
      timeout: 60000, // 增加到 60 秒
      maxRedirects: 5,
      maxBodyLength: Infinity,
      maxContentLength: Infinity,
    }),
    ConfigModule
  ],
  providers: [DeepSeekService],
  exports: [DeepSeekService],
})
export class DeepSeekModule {}